home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / editor / auror300.zip / DEFINE.AML < prev    next >
Text File  |  1996-07-17  |  8KB  |  338 lines

  1. //--------------------------------------------------------------------
  2. // The Aurora Editor v3.0, Copyright (C) 1993-1996 nuText Systems
  3. //
  4. // DEFINE.AML
  5. // Constants and Compile-Time functions (included by Main.aml)
  6. //
  7. // If you have made any changes, save this file and select Recompile
  8. // the Editor from the Set menu. Exit and re-enter the editor for your
  9. // changes to take effect.
  10. //--------------------------------------------------------------------
  11.  
  12. // compile-time macros and constants ---------------------------------
  13.  
  14. // return a fully qualified boot directory aml/x file
  15. constant function amlfile (filename)
  16.   qualfile = bootpath filename + ".x"
  17.   return  if file? qualfile then
  18.             qualfile
  19.           else
  20.             bootpath filename + ".aml"
  21.           end
  22. end
  23.  
  24. // return a fully qualified macro directory aml file
  25. constant function macfile (filename)
  26.   bootpath "macro\\" + filename + ".aml"
  27. end
  28.  
  29. // window and config setting values
  30. constant  ON         =  1
  31. constant  OFF        =  0
  32. constant  TOGGLE     = -1
  33. constant  DEFAULT    =  2
  34.  
  35. // boolean values
  36. constant  TRUE       =  1, true = 1
  37. constant  FALSE      =  0, false = 0
  38.  
  39. // maximum column
  40. constant  MAX_COL    =  16000
  41.  
  42. // for the substring [] operator
  43. constant  LAST_CHAR  =  0
  44. constant  TO_END     =  -1
  45.  
  46. // colors
  47. constant  black   = 0      constant  darkgray      =  8
  48. constant  blue    = 1      constant  brightblue    =  9
  49. constant  green   = 2      constant  brightgreen   = 10
  50. constant  cyan    = 3      constant  brightcyan    = 11
  51. constant  red     = 4      constant  brightred     = 12
  52. constant  magenta = 5      constant  brightmagenta = 13   constant  pink = 13
  53. constant  brown   = 6      constant  yellow        = 14
  54. constant  gray    = 7      constant  white         = 15
  55.  
  56. constant  on = 1
  57.  
  58. // color calculation (compile-time function)
  59. constant function  color (foreground on background)
  60.   return background * 16 + foreground
  61. end
  62.  
  63. // window component id's for the setcolor, getcolor functions
  64. constant border_color       = 0    constant menu_hotkey_color     =  9
  65. constant corner_color       = 1    constant menu_disable_color    = 10
  66. constant north_title_color  = 2    constant menu_hilite_color     = 11
  67. constant south_title_color  = 3    constant endoftext_color       = 12
  68. constant control_color      = 4    constant border_flash_color    = 13
  69. constant text_color         = 5    constant fold_color            = 14
  70. constant mark_color         = 6    constant modified_color        = 15
  71. constant scroll_color       = 7    constant modified_cursor_color = 16
  72. constant menu_color         = 8    constant fold_begin_color      = 17
  73.                                    constant fold_end_color        = 18
  74.  
  75. // Objects -----------------------------------------------------------
  76.  
  77. forward object prf
  78. forward object win
  79. forward object edit_fmgr
  80. forward object fmgr
  81. forward object edit
  82.  
  83.  
  84. // Library and Extension functions -----------------------------------
  85.  
  86. // library functions
  87. forward  about
  88. forward  addhistory
  89. forward  ask
  90. forward  askbox
  91. forward  askbox1
  92. forward  askhistory
  93. forward  askline
  94. forward  assignkey
  95. forward  begdesk
  96. forward  button
  97. forward  cascade
  98. forward  close
  99. forward  copywin
  100. forward  currdesk
  101. forward  currwin
  102. forward  deletewin
  103. forward  dialog
  104. forward  dir?
  105. forward  enddesk
  106. forward  erasekey
  107. forward  errormsg
  108. forward  fbreak
  109. forward  fcommand
  110. forward  fgetfile
  111. forward  fgetopt
  112. forward  fgetsort
  113. forward  field
  114. forward  filelist
  115. forward  finddlg
  116. forward  fmark
  117. forward  fmark?
  118. forward  fsort
  119. forward  fstatus
  120. forward  fup
  121. forward  fupdate
  122. forward  getdialog
  123. forward  gethistname
  124. forward  gethiststr
  125. forward  getsettings
  126. forward  gotobar
  127. forward  gotobar2
  128. forward  gotoerror
  129. forward  gotomatch
  130. forward  gotomenu
  131. forward  groupbox
  132. forward  listbox
  133. forward  max?
  134. forward  maximize
  135. forward  min?
  136. forward  minimize
  137. forward  msgbox
  138. forward  nextfile
  139. forward  nexthist
  140. forward  nextwindow
  141. forward  okbox
  142. forward  open
  143. forward  openbuf
  144. forward  opendesk
  145. forward  openhistory
  146. forward  openkey
  147. forward  opennew
  148. forward  pankey
  149. forward  pickfile
  150. forward  playkey
  151. forward  pophistory
  152. forward  popup
  153. forward  prevfile
  154. forward  prevhist
  155. forward  prevwindow
  156. forward  reopen
  157. forward  repldlg
  158. forward  restore
  159. forward  restoredesk
  160. forward  save
  161. forward  savedesk
  162. forward  savehistory
  163. forward  savekey
  164. forward  setdraw
  165. forward  setgroupbox
  166. forward  setmenucurs
  167. forward  setname
  168. forward  setting
  169. forward  setting?
  170. forward  shortbox
  171. forward  sizekey
  172. forward  sizewin
  173. forward  splitwin
  174. forward  submenu
  175. forward  tile
  176. forward  toolbar
  177. forward  trackmouse
  178. forward  videomode
  179. forward  whenenter
  180. forward  whenselect
  181. forward  winlist
  182. forward  yncbox
  183.  
  184.  
  185. // extension functions
  186. forward  asciilist
  187. forward  askasave
  188. forward  askbook
  189. forward  askclip
  190. forward  askcmacro
  191. forward  askcomplete
  192. forward  askeval
  193. forward  askfile
  194. forward  askfind
  195. forward  askfindo
  196. forward  askinsert
  197. forward  askname
  198. forward  askopen
  199. forward  askopenb
  200. forward  askopenkey
  201. forward  askrac
  202. forward  askrepkey
  203. forward  askrepl
  204. forward  askrmacro
  205. forward  askrow
  206. forward  askrun
  207. forward  askruncap
  208. forward  asksaveas
  209. forward  asksavekey
  210. forward  askscan
  211. forward  askx
  212. forward  autosave
  213. forward  backsp
  214. forward  backup
  215. forward  caseword
  216. forward  centerline
  217. forward  clear
  218. forward  close
  219. forward  closeall
  220. forward  commentline
  221. forward  compilemacro2
  222. forward  copy
  223. forward  copyblock2
  224. forward  cut
  225. forward  cyclebook
  226. forward  defext
  227. forward  delchar2
  228. forward  deleteblock2
  229. forward  delword
  230. forward  enter
  231. forward  erasekey2
  232. forward  fattr
  233. forward  fcopy
  234. forward  fdelete
  235. forward  ferror
  236. forward  fillblock2
  237. forward  findlast
  238. forward  findlasto
  239. forward  finsert
  240. forward  flopen
  241. forward  flsave
  242. forward  fmkdir
  243. forward  fmove
  244. forward  fname
  245. forward  foldall
  246. forward  foldline
  247. forward  fopen
  248. forward  forceext
  249. forward  formatblock2
  250. forward  fprint
  251. forward  fremove
  252. forward  frename
  253. forward  frun
  254. forward  fstat
  255. forward  ftouch
  256. forward  fup
  257. forward  getext
  258. forward  getmarktext
  259. forward  getname
  260. forward  getpath
  261. forward  getword
  262. forward  gotobook2
  263. forward  gotomark
  264. forward  gotomatch2
  265. forward  helpmacro
  266. forward  hiliteword
  267. forward  insline2
  268. forward  isearch
  269. forward  justblock2
  270. forward  literal
  271. forward  livewrap
  272. forward  markeol
  273. forward  markpara
  274. forward  markword
  275. forward  moveblock2
  276. forward  moveblockover
  277. forward  nextword
  278. forward  opencfg
  279. forward  openkey2
  280. forward  openlast
  281. forward  openword
  282. forward  os
  283. forward  paste
  284. forward  pickmacro
  285. forward  placebook
  286. forward  play
  287. forward  prefix
  288. forward  prevword
  289. forward  print
  290. forward  printfile
  291. forward  printstr
  292. forward  quickbook
  293. forward  quickref
  294. forward  quote
  295. forward  recompile
  296. forward  record
  297. forward  regen
  298. forward  replver
  299. forward  row2
  300. forward  run
  301. forward  runcap
  302. forward  runcfg
  303. forward  runmacro2
  304. forward  saveblock2
  305. forward  savecfg
  306. forward  search
  307. forward  search2
  308. forward  shell
  309. forward  showdialog
  310. forward  smark
  311. forward  sortblock2
  312. forward  splitline2
  313. forward  swapline
  314. forward  tabfile
  315. forward  tableft
  316. forward  tabright
  317. forward  timestamp
  318. forward  togglemode
  319. forward  write
  320. forward  writebak
  321.  
  322. // on-event functions:
  323. forward  onalarm
  324. forward  onclose
  325. forward  oncomment
  326. forward  onentry
  327. forward  onexit
  328. forward  onfocus
  329. forward  onfound
  330. forward  onhotkey
  331. forward  onkillfocus
  332. forward  onname
  333. forward  onopen
  334. forward  onopenproject
  335. forward  onsave
  336. forward  onsaveproject
  337. forward  onsyntax
  338.